package com.dk.service.impl;

import com.dk.pojo.TValuation;
import com.dk.mapper.TValuationMapper;
import com.dk.service.ITValuationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 估值表 服务实现类
 * </p>
 *
 * @author author
 * @since 2021-11-01
 */
@Service
public class TValuationServiceImpl extends ServiceImpl<TValuationMapper, TValuation> implements ITValuationService {

    @Autowired
    private TValuationMapper tValuationMapper;

    @Override
    public List<TValuation> getInfoAll() {
        return tValuationMapper.selectList(null);
    }

    @Override
    public Integer updateInfo(TValuation tValuation) {
        Integer integer = tValuationMapper.updateById(tValuation);
        return integer;
    }

    @Override
    public Integer deleById(Integer id) {
        Integer integer = tValuationMapper.deleteById(id);
        return integer;
    }
}
